import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { KucunZhuXinxiComponent } from './kucun-zhu-xinxi/kucun-zhu-xinxi.component';
import { ChuRuKuLiuShuiComponent } from './chu-ru-ku-liu-shui/chu-ru-ku-liu-shui.component';
import { KuCunYuJingComponent } from './ku-cun-yu-jing/ku-cun-yu-jing.component';
import { AuthGuard, PermissionGuard } from '@abp/ng.core';

const routes: Routes = [
  {
    path: '',
    canActivate: [AuthGuard, PermissionGuard],
    children: [
      {
        path: 'kucun-zhu-xinxi',
        component: KucunZhuXinxiComponent
      },
      {
        path: 'chu-ru-ku-liu-shui',
        component: ChuRuKuLiuShuiComponent
      },
      {
        path: 'ku-cun-yu-jing',
        component: KuCunYuJingComponent
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class StockRoutingModule { } 